package admin

import "exercise/application/yiran/app/model_new/base"

type AdminMenu struct {
	base.AdminMenu
}

func NewAdminMenuModel() *AdminMenu {
	return &AdminMenu{}
}

func (a *AdminMenu) List() (adms []*AdminMenu) {
	db := a.DB().Model(a)
	db.Order("id ASC").Find(&adms)
	return adms
}
